<%@page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<c:if test="${authority!=null}">
    <c:set var="operat" value="update" scope="page"/>
</c:if>
<c:if test="${authority==null}">
    <c:set var="operat" value="insert" scope="page"/>
</c:if>

<div class="pageContent">
    <form:form modelAttribute="authority" action="${ctx}/authority/${operat}?navtabid=permissionNav" method="post"
               onsubmit="return validateCallback(this, dialogAjaxDone);">
        <div class="pageFormContent" layoutH="58">
            <input type="hidden" id="id" name="id" value="${authority.id}"/>
            <p>
                <label>name:</label>
                <input name="name" class="required" type="text" value="${authority.name}"/>
            </p>
            <p>
                <label>modulename:</label>
                <input name="modulename" class="required" type="text" value="${authority.modulename}"/>
            </p>
            <p>
                <label>module:</label>
                <input name="module" class="required" type="text" value="${authority.module}"/>
            </p>
            <p>
                <label>action:</label>
                <input name="action" class="required" type="text" value="${authority.action}"/>
            </p>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">保存</button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="reset">清空</button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">关闭</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form:form>
</div>
